<template>
  <div>
<!--    <el-button @click="aaaaa">按钮</el-button>-->
    <material_header></material_header>
    <local-header style="padding: 0.8rem;"></local-header>
    <material_list :categorys="this.categorys" :categoryType="this.categoryType"></material_list>
  </div>

</template>

<script>
  import material_header from "@/components/material/material_header"
  import LocalHeader from '@/components/local/LocalHeader'
  import material_list from '@/components/material/material_list'
  import {getCateGoryList} from '@/api/commodity/shop_product.js'


  export default {
    name: "mainMaterial_index",
    data() {
      return{
        categorys: [],
        categoryType: 0
      }
    },
    created() {
      this.getList();
    },
    components: {
      material_header,LocalHeader,material_list
    },
    methods: {
      // 查询建房主材类别列表
      getList(){
        getCateGoryList("0").then((res) => {
          this.categorys = res.data.data;
        });
      },
    },
  }
</script>

<style scoped>

</style>
